# coding=utf-8
import sys
 
def remove_comments(code):
    result = []
    in_block_comment = False
    i = 0
    while i < len(code):
        # 处理段注释开始
        if not in_block_comment and i + 1 < len(code) and code[i] == '/' and code[i+1] == '*':
            in_block_comment = True
            i += 2
        # 处理段注释结束
        elif in_block_comment and i + 1 < len(code) and code[i] == '*' and code[i+1] == '/':
            in_block_comment = False
            i += 2
        # 处理行注释
        elif not in_block_comment and i + 1 < len(code) and code[i] == '/' and code[i+1] == '/':
            # 跳过到行尾
            while i < len(code) and code[i] != '\n':
                i += 1
            # 保留换行符
            if i < len(code):
                result.append(code[i])
                i += 1
        # 处理正常字符
        elif not in_block_comment:
            result.append(code[i])
            i += 1
        # 在段注释内，跳过字符
        else:
            i += 1
    return ''.join(result)
 
def main():
    # 读取所有输入
    code = sys.stdin.read()
    # 移除注释
    result = remove_comments(code)
    # 输出结果
    print(result, end='')
 
if __name__ == "__main__":
    main()